package com.godyao.mall.file.controller;

import com.godyao.mall.core.model.ResultMsg;
import com.godyao.mall.file.service.OssSignService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author godyao
 * @date 2022年04月20日15:23
 */
@RestController
@RequestMapping("/oss")
@RequiredArgsConstructor
public class OssController {
    private final OssSignService ossSignService;

    @GetMapping("/getSign")
    public ResultMsg getSign() {
        return ResultMsg.resultSuccess(ossSignService.getSignInfo());
    }
}
